<template>
  <div class="right-box column">
    <q-responsive :ratio="4 / 3" style="width: 100%">
      <div class="fit column upload-indicator">
        <div class="col row justify-center items-center" style="position:relative">
          <q-img :src="thumbnail" class="fit image" />
          <q-knob v-model="progressValue" size="50px" color="accent" track-color="black" readonly></q-knob>
        </div>
        <div class="info-line row justify-between items-center q-px-xs">
          <lang-chip :code="language ? language.code : 'en-US'" />
          <q-icon name="mdi-quality-high" size="24px" />
        </div>
      </div>
    </q-responsive>
  </div>
</template>
<script setup lang="ts">
import { onMounted, ref, PropType, watch } from 'vue';
import LangChip from 'components/LanguageChip.vue';
import LanguageConfig from 'src/models/LanguageConfig';
const props = defineProps({
  uploadInfo: {
    type: Object,
    required: false
  },
  videoInfo: {
    type: Object,
    required: false,
  },
  language: {
    type: Object as PropType<LanguageConfig>,
    required: false,
  },
  thumbnail: {
    type: String,
    required: false,
  },
})
const progressValue = ref(50);
watch(() => props.language, () => {
  console.log(props.language);
})
</script>
<style lang="scss" scoped>
.right-box {
  width: 100%;
  height: 100%;
  border: 1px solid #404040;
  .upload-indicator {
    overflow: hidden;
    .image {
      position: absolute;
      top: 0;
      left: 0;
      filter: blur(3px);
    }
    .info-line {
      height: 38px;
      background-color: #3c3c3c;
    }
  }
}
</style>